package mycompany;

import org.apache.catalina.connector.Request;
import org.apache.catalina.connector.Response;
import org.apache.wicket.Page;
import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.link.Link;
import org.apache.wicket.request.cycle.RequestCycle;
import org.apache.wicket.request.http.WebRequest;
import org.apache.wicket.request.http.WebResponse;

public class HomePage extends WebPage {
//    public HomePage(){
//        add(new Label("helloMessage","Hello WicketWorld!"));
//    }
    public HomePage(){
        add(new Link<Void>("id") {
//            @Override
//            public void onClick() {
//
//            }
            @Override
            public void onClick() {
                JobPage jobPage = new JobPage();
                setResponsePage(jobPage);
            }
//            @Override
//            public void onClick() {
//               setResponsePage(JobPage.class);
//            }
        });
    }

}
